package my.design.principle;

/**
 * @author zp
 * @version 1.0
 * @description: 行为原则第一条 单一原则
 * @date 2022/9/26 18:51
 */
public class SingleResponsibility1 {
    public static void main(String[] args) {
        Vehicle vehicle = new Vehicle();
        vehicle.run("汽车");
    }
}

class Vehicle{
    public void run(String vehicle){
        System.out.println(vehicle+"在马路上运行");
    }
}
